package com.wang.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wang.pojo.CustomerFeedback;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

/**
 * @Entity com.wang.pojo.CustomerFeedback
 */
@Mapper
public interface CustomerFeedbackMapper extends BaseMapper<CustomerFeedback> {
    @Insert("insert into tb_customer_feedback(feedback_content,pic,feedback_type_id,user_id) values(#{feedbackContent},#{pic},#{feedbackTypeId},#{userId}) ")
    void insertFeedback(CustomerFeedback feedback);
    @Update("update tb_customer_feedback set admin_id=#{adminId},respond=1,feedback_respond=#{feedbackRespond} where feedback_id=#{feedbackId} and del_flag=0 ")
    void respond(CustomerFeedback feedback);

}




